package cn.jw.starter.web.common;

/**
 * 错误码枚举
 *
 * @author wgslucky
 * @since 2024/5/1 22:50
 **/
public enum EnumJwWebError implements JwErrorBase {
    CONTENT_TYPE_NULL(500, "请求Content-Type不能为空");

    private int errorCode;
    private String errorMsg;

    EnumJwWebError(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public int getErrorCode() {
        return this.errorCode;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }
}
